using RabbitMQ.Client;

namespace Aurora.RabbitMq.Provider;

/// <summary>
/// connection pool
/// </summary>
public interface IConnectionPool : IDisposable
{
    /// <summary>
    /// get connection 
    /// </summary>
    /// <param name="connectionName"></param>
    /// <returns></returns>
    IConnection Get(string? connectionName = null);
}